package git.jas0nch.boottest.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController // 区别：@Controller
public class greetcontroller {

    @GetMapping("/forJson")
    public String Json(){
        return "{\"data\":\"hello\"}";
    }

    @GetMapping("/greet")
    public String Greet(){
        return "<h1>i'm here now</h1>";
    }
}
